<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="../js/jquery.js"></script>
  <title>Document</title>
  <script>
    function myfun() {
      console.log('dom克隆');
    }
    $(function() {
      // 选择目标节点
      // $('.parent').empty()
      $('.child:last-child').click(myfun);
      $('.child:last-child').clone(true).appendTo('.parent')
    })
  </script>
</head>
<body>
  <div class="parent">
    <div class="child">one</div>
    <div class="child">two</div>
    <div class="child">three</div>
  </div>
</body>
</html>